home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre3.z / postgre3 / src / lib / H / obsolete / control.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  1.4 KB  |  81 lines

  1. #ifndef    ControlIncluded    /* Include this file only once. */
  2. #define ControlIncluded    1
  3. /* ----------------
  4.  *    THIS FILE IS GOING AWAY.  -cim
  5.  * ----------------
  6.  */
  7.  
  8. #define CONTROL_H_OBSOLETE 1
  9. #define CONTROL_H_OBSOLETE 2
  10.  
  11. #if 0
  12. /*
  13.  * control.h --
  14.  *    Postgres control definition
  15.  *
  16.  * Identification:
  17.  *    $Header: /private/postgres/src/lib/H/obsolete/RCS/control.h,v 1.1 1990/06/12 21:25:01 cimarron Version_2 $
  18.  */
  19.  
  20.  
  21. #ifndef C_H
  22. #include "c.h"
  23. #endif
  24.  
  25. typedef int        ControlChannel;
  26. #define   ControlChannelValid(channel)    ((channel) != -1)
  27.  
  28. typedef unsigned short    ControlType;
  29. #define   ControlTypeMax        16
  30. #define   ControlTypeValid(type)    ((type) < ControlTypeMax)
  31.  
  32. typedef unsigned short    ControlSize;
  33. #define   ControlSizeMax        256
  34. #define   ControlSizeValid(size)    ((size) < ControlSizeMax)
  35.  
  36. typedef char        *ControlData;
  37. #define  ControlDataValid(data)        ((data) != NULL)
  38.  
  39. typedef void ControlHandler ARGS((
  40.     ControlType    type,
  41.     ControlData    data,
  42.     ControlSize    size
  43. ));
  44.  
  45. extern
  46. void
  47. ControlInstall ARGS((
  48.     ControlType    type,
  49.     ControlHandler    handler
  50. ));
  51.  
  52. extern
  53. void
  54. ControlReceive ARGS((
  55.     ControlChannel    channel,
  56.     ControlType    *typeP,
  57.     ControlData    *dataP,
  58.     ControlSize    *sizeP
  59. ));
  60.  
  61. extern
  62. void
  63. ControlDispatch ARGS((
  64.     ControlType    type,
  65.     ControlData    data,
  66.     ControlSize    size
  67. ));
  68.  
  69. extern
  70. void
  71. ControlSend ARGS((
  72.     ControlChannel    channel,
  73.     ControlType    type,
  74.     ControlData    data,
  75.     ControlSize    size
  76. ));
  77.  
  78. #endif
  79.  
  80. #endif    /* !defined(ControlIncluded) */
  81.